export const ENV = {
  dev: "测试环境",
  sim: "仿真环境",
  prod: "生产环境",
};
export const envList = ["测试环境", "仿真环境", "生产环境"];
// 存储标签类型
export const storageTagType = {
  local: "本地存储",
  share: "共享存储",
};
// 磁盘类型
export const diskType = [
  { value: 'hdd', label: "普通磁盘" },
  { value: 'ssd', label: "高性能磁盘" },
]
// ip地址（已保留）类型
export const ipType = {
  system_reserved: "系统保留",
  unavailable: "不能使用",
};

export const objCategory = {
  0: "异常",
  1: "正常",
  2: "同步中",
  normal:'正常',
  running:'正常',
  online: "在线",
  offline: "离线",
  stopped: "停止",
  syncing: "同步中",
  anomaly: "异常",
  true: "是",
  false: "否",
};
export const objColor = {
  //   1: 'arcoblue',
  //   0: 'red',
  // 'DRAFT': 'gold',
  // 'CANCELED': 'gray',
  // 'PRODUCT': 'orangered',
  // 'SECURITY': 'cyan',
  success: "green",
  running: "green",
  normal: "green",
  true: "green",
  error: "red",
  0: "red",
  stopped: "red",
  warning: "#FFF8ED",
  default: "gray",
  syncing: "blue",
};

export const platformType = {
  53: "smartx", 
  20: "openStack",
  21: "easystack",
  10: "vmware",
  94: "huaweistack",
};
// export const platformTypeList = Object.keys(platformType)?.map((item) => ({
//   value: item,
//   label: platformType[item],
// }));
// export const networkTypeList = [
//   { value: 'VLAN_ACCESS', label: "Smartx" },
//   { value: "VLAN_TRUNK", label: "OpenStack" },
//   { value: "easystack", label: "Easystack" },
//   { value: "vmware", label: "Vmware" },
//   { value: "huaweistack", label: "Huawei" },
// ]
export const vmDetailList = [
  { value: 'info', label: "详情" },
  { value: "vmMonitor", label: "监控" },
  { value: "event", label: "事件" },
  { value: "warning", label: "告警" },
]
export const platformTypeList = [
  { value: 'smartx', label: "Smartx" },
  { value: "easystack", label: "Easystack" },
  { value: "vmware", label: "Vmware" },
  { value: "huaweistack", label: "Huawei" },
]
export const platformDetailList = [
  // { value: 'overview', label: "概览" },
  { value: "cluster", label: "集群" },
  { value: "vmGroup", label: "主机组" },
  { value: "vm", label: "云主机" },
  { value: "computingNode", label: "计算节点" },
  { value: "storage", label: "存储" },
]
export const clusterDetailList = [
  { value: 'overview', label: "概览" },
  // { value: "vmGroup", label: "主机组" },
  { value: "vm", label: "云主机" },
  { value: "computingNode", label: "计算节点" },
  { value: "storage", label: "存储" },
]
export const hostDetailList = [
  { value: 'overview', label: "概览" },
  { value: "hardware", label: "硬件信息" },
  { value: "vm", label: "云主机" },
  { value: "monitor", label: "监控" },
  { value: "storage", label: "存储" },
]
export const layer2subnetDetailList = [
  { value: "ipUsed", label: "IP地址(已使用)" },
  { value: "ipReserved", label: "IP地址(已保留)" },
  { value: "relatedSubnets", label: "关联子网" },
  // { value: "relatedItpm", label: "关联项目" },
]
export const imageType = {
  standardImage: "公共镜像（标准）",
  nonStandardImage: "公共镜像（非标准）",
  privateImage: "私有镜像",
};
export const formateTemplateType = {
  standardImage: "public_standard",
  nonStandardImage: "public_nonstandard",
  privateImage: "private",
};
// 镜像类型
export const operatingSystemList = Object.keys(imageType)?.map((item) => ({
  value: item,
  label: imageType[item],
}));
export const imageTypeList = [
  { value: 'public_standard', label: "公共镜像（标准）" },
  { value: 'public_nonstandard', label: "公共镜像（非标准）" },
  { value: 'private', label: "私有镜像" },
]
export const cpuType = [
  { value: 4, label: "4核" },
  { value: 8, label: "8核" },
  { value: 16, label: "16核" },
  { value: 32, label: "32核" },
  { value: 64, label: "64核" },
]
export const memType = [
  { value: 4, label: "4GB" },
  { value: 8, label: "8GB" },
  { value: 16, label: "16GB" },
  { value: 32, label: "32GB" },
  { value: 64, label: "64GB" },
]
export const clusterTypeList = [
  { value: 'XC', label: "信创" },
  { value: "NOT_XC", label: "非信创" },
]
export const appTypeList = [
  { value: 'ecs', label: "计算" },
  // { value: "gke_container", label: "容器" },
  // { value: "gke_middleware", label: "中间件" },
  // { value: "gke_database", label: "数据库" },
  // { value: "gpu", label: "GPU" },
]
export default {};
